import 'package:backend.core/core/domain/entities/api/web/api_web_one_time_purchased_item_transaction_offer_type.dart';
import 'package:backend.core/core/domain/entities/web/web_one_time_purchased_item_transaction_offer_type.dart';

abstract class CreateApiWebOneTimePurchasedItemTransactionOfferTypeFromInternalOne {
  ApiWebOneTimePurchasedItemTransactionOfferType call({
    required WebOneTimePurchasedItemTransactionOfferType offerType,
  });
}

class CreateApiWebOneTimePurchasedItemTransactionOfferTypeFromInternalOneImpl
    implements CreateApiWebOneTimePurchasedItemTransactionOfferTypeFromInternalOne {
  const CreateApiWebOneTimePurchasedItemTransactionOfferTypeFromInternalOneImpl();

  @override
  ApiWebOneTimePurchasedItemTransactionOfferType call({
    required WebOneTimePurchasedItemTransactionOfferType offerType,
  }) {
    switch (offerType) {
      case WebOneTimePurchasedItemTransactionOfferType.regular:
        return ApiWebOneTimePurchasedItemTransactionOfferType.regular;
    }
  }
}
